class CreateAreasIncentivos < ActiveRecord::Migration
  def self.up
    create_table :areas_incentivos, :id => false do |t|
      t.references :area, :incentivo, :null => false
      t.timestamps
    end
    add_index :areas_incentivos, [:area_id, :incentivo_id], :unique => true
  end

  def self.down
    drop_table :areas_incentivos
  end
end
